package br.com.ir.tcc.geco.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import br.com.ir.tcc.geco.modelo.Template;
import br.com.ir.tcc.geco.service.TemplateService;


@Controller
public class TemplateController extends WebController {

	@Resource
	private TemplateService service;
	
	@RequestMapping(value="/templates/salvar.do", method=RequestMethod.POST)
	public String salvarTemplates(Template template){
		
		try {
			//getService().salvarTemplate(template);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return "/listar";
	}

	public TemplateService getService() {
		return service;
	}

	public void setService(TemplateService service) {
		this.service = service;
	}
}
